package com.itheima.service.southwestimpl;

import com.itheima.annotations.District;
import com.itheima.service.DistrictPercentage;
import org.springframework.stereotype.Component;

/***
 * 西南区销售分成具体实现
 * @author 黑马程序员
 * @Company http://www.itheima.com
 */
@Component("districtPercentage")
@District("southwest")
public class SouthwestDistrictPercentage implements DistrictPercentage {
    @Override
    public void salePercentage(String carType) {
        if ("SUV".equalsIgnoreCase(carType)) {
            System.out.println("西南区" + carType + "提成1.5%");
        } else if ("car".equalsIgnoreCase(carType)) {
            System.out.println("西南区" + carType + "提成0.5%");
        }
    }
}